package com.ecoolex.ying.space.core.dao;

import com.ecoolex.framework.common.pojo.Page;
import com.ecoolex.ying.space.core.mapper.OutsourcingGoodsMapper;
import com.ecoolex.ying.space.entity.OutsourcingGoodsWithBLOBs;
import com.ecoolex.ying.space.pojo.QueryOutsourcingGoodsAndPackagedDTO;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OutsourcingGoodsDAO extends OutsourcingGoodsMapper {

    long countUnrelatedWithCatalog(@Param("catalogId") Integer catalogId, @Param("name") String name);

    List<OutsourcingGoodsWithBLOBs> queryUnrelatedWithCatalog(@Param("catalogId") Integer catalogId, @Param("name") String name , @Param("sorts") String sorts , @Param("page") Page page);

    long countGoodsAndPackaged(@Param("name") String name);
    
    List<QueryOutsourcingGoodsAndPackagedDTO> queryGoodsAndPackaged(@Param("name") String name,@Param("page") Page page);
}